package com.atguigu.day01;

public class Test7 {

    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println("互换前：\n" + "a = " + a + "\nb = " + b);

        int temp;

        temp = a;
        a = b;
        b = temp;
        System.out.println("互换后：\n" + "a = " + a + "\nb = " + b);
    }

}
